package cn.jr.service;

import cn.jr.pojo.OrderProject;
import cn.jr.pojo.Wares;

import java.util.ArrayList;

public interface IOrderProjectService {
    ArrayList<OrderProject> selectOrderProject();//查询所有订单商品
    ArrayList<OrderProject> queryOrderProject(String orderId);//根据订单编号查询订单商品
    OrderProject selectOrderProjectInOrderByWaresNumber(String orderId, String waresNumber);//根据订单编号和商品编号查询订单商品
    int deleteOrderProjectByOrderProjectId(OrderProject orderProject);//根据订单详情编号删除订单详情
    boolean insertOrderProject(Wares ware, Double waresCount);//添加订单商品
    int updateOrderProjectInTuiHuo(Wares ware, Double waresCount,String orderId);//根据订单编号和商品编号修改订单商品
    boolean insertOrderProjectInOrder(Wares  ware,Double waresCount);//添加订单商品
    boolean deleteOrderProject(String waresNumber);//根据商品编号删除订单商品
    OrderProject selectOrderProjectEnd();//查询订单商品最新记录
    ArrayList<OrderProject> selectOrderProjectByWaresNumber(String waresNumber);//根据商品编号查询订单商品
}
